home *** CD-ROM | disk | FTP | other *** search
- speed = 2;
- stop();
- vx = vectorX;
- vy = vectorY;
- if(this._name != "bob")
- {
- onEnterFrame = function()
- {
- if(this._y > 650 or _xscale <= 10)
- {
- i = 0;
- while(i <= _root.tohit.length)
- {
- if(_root[_root.tohit[i]]._name == _name)
- {
- _root.tohit.splice(i,1);
- i--;
- }
- i++;
- }
- removeMovieClip(this);
- }
- _X = _X + vectorX;
- _Y = _Y - vectorY;
- vectorX *= 0.9000000000000002;
- vectorY *= 0.9000000000000002;
- _xscale = 150 * (vectorX * vectorX + vectorY * vectorY) / (vx * vx + vy * vy);
- _yscale = _xscale;
- };
- }
-